package com.yst.gateway.monitor.common.utils;

import org.springframework.context.support.MessageSourceAccessor;
import org.springframework.context.support.ResourceBundleMessageSource;

/**
 * 指定读取属性配置文件
 * @author sheungxin
 *
 */
public class SpringMessageSource extends ResourceBundleMessageSource {
  
	public SpringMessageSource() {
		setBasename("config/validatorMes");
		setBasename("config/httpUrlConfig");
	}
	
    public static MessageSourceAccessor getAccessor() {  
        return new MessageSourceAccessor(new SpringMessageSource());  
    }
}  